package com.filetransfer.filesTCP.util;

import org.springframework.jdbc.core.JdbcTemplate;

/**
 * Description: these message can be deleted
 * Author:sold out
 * Create Date: 2021/12/20 23:32
 * Version: JDK 1.8
 */
public class getJdbcTemple {

    private static JdbcTemplate jdbcTemplate = null;

    public static JdbcTemplate getJdbcTemplate() {
        if (jdbcTemplate != null) {
            jdbcTemplate = new JdbcTemplate(DruidUtil.getDataSource());
        }
        return jdbcTemplate;
    }
}
